package io.renren.modules.oss.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import io.renren.modules.oss.dao.SysOssDao;
import io.renren.modules.oss.entity.SysOssEntity;
import io.renren.modules.oss.service.SysOssService;




@Service("sysOssService")
public class SysOssServiceImpl extends ServiceImpl<SysOssDao, SysOssEntity> implements SysOssService {
	@Autowired
	private SysOssDao sysOssDao;
	
	
	@Override
	public List<SysOssEntity> queryList(Map<String, Object> map){;
	    Integer offset = (Integer)map.get("offset");
	    Integer limit = (Integer)map.get("limit");
		return sysOssDao.selectPage(new Page<>(offset, limit), null);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysOssDao.selectCount(null);
	}
	
}
